#!/bin/bash

# @author      xqyjlj
# @file        run.sh
#
# Change Logs:
# Date           Author       Notes
# ------------   ----------   -----------------------------------------------
# 2023-01-12     xqyjlj       initial version
#

qemu-system-riscv64 \
    -machine virt \
    -cpu rv64,v=true,vlen=128,vext_spec=v1.0 \
    -m 66M \
    -kernel rtthread.bin -S -s \
    -nographic \
    -device virtio-serial-device \
    -chardev socket,host=127.0.0.1,port=43211,server=on,wait=off,telnet=on,id=console0 \
    -device virtserialport,chardev=console0
